package com.ruicar.afs.cloud.risk.tortoise.dto.request;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ruicar.afs.cloud.common.core.enums.AfsEnumDeserializer;
import com.ruicar.afs.cloud.common.core.enums.AfsEnumSerializer;
import com.ruicar.afs.cloud.risk.api.enums.tortoise.GwtTortoiseAntiFraudCallStep;
import com.ruicar.afs.cloud.risk.api.enums.tortoise.GwtTortoiseStartApproveType;
import com.ruicar.afs.cloud.risk.tortoise.enums.GwtTortoiseChannelType;
import com.ruicar.afs.cloud.risk.api.enums.tortoise.GwtTortoiseScene;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Description 玄武查询发起报文
 * @Author Peng Jinbo
 * @Date 2020/07/21 10:59
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class GwtTortoiseStartRequest implements Serializable {

    /**
     * Ca main id
     * 订单唯一标识
     */
    @JsonInclude
    @JSONField(name = "camainId")
    @JsonProperty("camainId")
    private String caMainId;

    /**
     * Application no
     * 订单号
     */
    @JsonInclude
    @JSONField(name = "applicationNo")
    @JsonProperty("applicationNo")
    private String applicationNo;

    /**
     * Call back url
     * 回调地址
     */
    @JsonInclude
    @JSONField(name = "callBackUrl")
    @JsonProperty("callBackUrl")
    private String callBackUrl;

    /**
     * Pvm version
     * 版本号，固定值 GwtTortoiseConst.GWT_TORTOISE_VERSION
     */
    @JsonIgnore
    @JSONField(name = "pcmVersion",serialize = false)
    @JsonProperty("pcmVersion")
    private String pcmVersion;

    /**
     * Scene code
     * 场景号
     */
    @JsonInclude
    @JSONField(name = "sceneCode" , serializeUsing = AfsEnumSerializer.class, deserializeUsing = AfsEnumDeserializer.class)
    @JsonProperty("sceneCode")
    @JsonSerialize(using = AfsEnumSerializer.class)
    @JsonDeserialize(using = AfsEnumDeserializer.class)
    private GwtTortoiseScene sceneCode;

    /**
     * Call step
     * 调用步骤
     */
    @JsonInclude
    @JSONField(name = "callStep" , serializeUsing = AfsEnumSerializer.class, deserializeUsing = AfsEnumDeserializer.class)
    @JsonProperty("callStep")
    @JsonSerialize(using = AfsEnumSerializer.class)
    @JsonDeserialize(using = AfsEnumDeserializer.class)
    private GwtTortoiseAntiFraudCallStep callStep;

    /**
     * Sys call log id
     */
    @JsonInclude
    @JSONField(name = "responseKey")
    @JsonProperty("responseKey")
    private String sysCallLogId;

    /**
     * Channel type
     * 渠道标识
     */
    @JsonInclude
    @JSONField(name = "channelType", serializeUsing = AfsEnumSerializer.class, deserializeUsing = AfsEnumDeserializer.class)
    @JsonProperty("channelType")
    @JsonSerialize(using = AfsEnumSerializer.class)
    @JsonDeserialize(using = AfsEnumDeserializer.class)
    private GwtTortoiseChannelType channelType;

    /**
     * Approve type
     * 复议标识
     */
    @JsonInclude
    @JSONField(name = "reApprove", serializeUsing = AfsEnumSerializer.class, deserializeUsing = AfsEnumDeserializer.class)
    @JsonProperty("reApprove")
    @JsonSerialize(using = AfsEnumSerializer.class)
    @JsonDeserialize(using = AfsEnumDeserializer.class)
    private GwtTortoiseStartApproveType approveType;
    
}
